package com.xxx.blog.mapper;

import com.xxx.blog.domain.Article;
import com.xxx.blog.query.ArticleQuery;
import com.xxx.blog.vo.ArchiveVo;

import java.util.List;

/**
 * @author BoWei Wang
 * @date 2025/8/5
 */
public interface ArticleMapper {
    List<Article> findAll();

    Article findOne(Long id);

    List<Article> queryPage(ArticleQuery articleQuery);

    void addArticle(Article article);

    void updateArticle(Article article);

    void deleteArticle(Long id);

    void batchDeleteArticles(Long[] ids);

    List<ArchiveVo> archive();

    List<Article> getRelate(Long id);

    List<Article> findArticleByYearMonth(String yearMonth);

}
